# -*- coding: utf-8 -*-

import logging

from xadmin.lib.administrators import ResourceAdministrator
from xadmin.model.risks import Risk
from xadmin.controllers.resource import ResourceController

log = logging.getLogger(__name__)

class RisksController(ResourceController):
    """REST Controller styled on the Atom Publishing Protocol"""
    # To properly map this controller, ensure your config/routing.py file has
    # a resource setup:
    #     map.resource('risk', 'risks')


    def __init__(self):
        self.admin = ResourceAdministrator(Risk)
        self.resource = 'risks'
